<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-init" class="control-label col-xs-12 col-sm-2">{:__('积分初始值')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-init" class="form-control" name="row[init]" type="text" placeholder="{:__('积分初始值')}" value="{$row.init|htmlentities}" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-top" class="control-label col-xs-12 col-sm-2">{:__('积分封顶值')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top" class="form-control" name="row[top]" type="text" placeholder="{:__('积分封顶值')}" value="{$row.top|htmlentities}" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('是否开启封顶值')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" name="row[status]" type="hidden" value="{:$row.status?1:0}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {if !$row.status}fa-flip-horizontal text-gray{/if} fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed" data-type="0">{:__('Save')}</button>
        </div>
    </div>
</form>
